//
//  MYPublishEditGoodsFooter.swift
//  MuYing
//
//  Created by tbb on 2019/8/15.
//  Copyright © 2019 TBB. All rights reserved.
//

import UIKit

class MYPublishEditGoodsFooter: UITableViewHeaderFooterView {

    @objc lazy var selectBtn: QMUIButton = {
        let selectBtn = QMUIButton(type: .custom);
        selectBtn.imagePosition = .left;
        selectBtn.spacingBetweenImageAndTitle = 8.0;
        selectBtn.setImage(UIImage(named: "PublishEdit_add_goods_icon"), for: .normal);
        selectBtn.setTitle(kYQLSSwift("继续添加"), for: .normal);
        selectBtn.titleLabel?.font = UIFont.systemFont(ofSize: 12, weight: .medium);
        selectBtn.setTitleColor(UIColorFromHex(rgbValue: 0x989898), for: .normal)
        return selectBtn;
    }()
    
    override func layoutSubviews() {
        super.layoutSubviews();
        self.contentView.backgroundColor = .white;
        self.contentView.addSubview(self.selectBtn);
        self.selectBtn.mas_makeConstraints { (make) in
            make?.centerY.mas_equalTo()(0);
            make?.left.mas_equalTo()(12);
            make?.height.mas_equalTo()(17);
        }
    }
    
}
